package com.xd.core.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.company.dto.AddAgencyUserDto;
import com.xd.core.system.dto.UserListDto;
import com.xd.core.system.entity.SysRole;
import com.xd.core.system.entity.SysUser;
import com.xd.core.system.vo.PersonalInfoVo;
import com.xd.core.system.vo.UserDetailVo;
import com.xd.core.system.vo.UserListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author SJ
 * @since 2023-03-14
 */
public interface SysUserMapper extends BaseMapper<SysUser> {


    Integer getUserOfAllocation(@Param("a2") Integer a2, @Param("id") Integer id, @Param("userTypeB") String userTypeB);

    UserDetailVo userDetail(Integer id);

    List<SysRole> roleListDropDown(Integer companyId, List<Integer> roleIds);

    void updatePassword(@Param("addAgencyUserDto") AddAgencyUserDto addAgencyUserDto,@Param("id") Integer id);

    List<UserListVo> userList(@Param("userListDto") UserListDto userListDto,@Param("companyId") Integer companyId,@Param("userType") String userType);

    PersonalInfoVo getPersonalInfo(@Param("userId") Integer userId);
}
